package com.gzq.service;

import com.gzq.entity.IndexIamge;
import com.gzq.repository.IndexImageDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.*;

@Service
public class IndexImageService {
    @Resource
    IndexImageDao indexImageDao;
    public List findAll(){
        List list1=new ArrayList();
        List<IndexIamge> list= indexImageDao.findAll();
        for (int i=0;i<list.size();i++) {
            list1.add(list.get(i).getSrc());
            }
        return list1;
    }
}
